<?php

class Sgit_Form_Element_Select_Ofertas extends Sgit_Form_Element_Select
{
    

    
    
    public function init()
    {
        $ofertas=new Application_Model_Ofertas();
        
        
        $this->opciones =$ofertas->getAssoc('id','cliente',$this->where);
        
        
        
        foreach($this->opciones as $k => $v)
        {
            $this->opciones[$k]='O-'.str_pad($k,4,'0',STR_PAD_LEFT).' '.$v;
        }

        $this->setLabel('Ofertas');

    }
}




  